package com.ruoyi.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.demo.mapper.AuctionSessionMapper;
import com.ruoyi.demo.domain.AuctionSession;
import com.ruoyi.demo.service.IAuctionSessionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 拍卖专场服务实现类
 * 
 * @author metaee
 * @date 2025-03-06
 */
@Service
public class AuctionSessionServiceImpl extends ServiceImpl<AuctionSessionMapper, AuctionSession> implements IAuctionSessionService
{
    @Autowired
    private AuctionSessionMapper auctionSessionMapper;

    /**
     * 查询拍卖专场列表
     * 
     * @param auctionSession 拍卖专场
     * @return 拍卖专场
     */
    @Override
    public List<AuctionSession> selectAuctionSessionList(AuctionSession auctionSession)
    {
        return auctionSessionMapper.selectAuctionSessionList(auctionSession);
    }
    
    /**
     * 查询拍卖专场详细
     * 
     * @param sessionId 拍卖专场主键
     * @return 拍卖专场
     */
    @Override
    public AuctionSession selectAuctionSessionBySessionId(Long sessionId)
    {
        return auctionSessionMapper.selectAuctionSessionBySessionId(sessionId);
    }

    /**
     * 新增拍卖专场
     * 
     * @param auctionSession 拍卖专场
     * @return 结果
     */
    @Override
    public int insertAuctionSession(AuctionSession auctionSession)
    {
        return auctionSessionMapper.insertAuctionSession(auctionSession);
    }

    /**
     * 修改拍卖专场
     * 
     * @param auctionSession 拍卖专场
     * @return 结果
     */
    @Override
    public int updateAuctionSession(AuctionSession auctionSession)
    {
        return auctionSessionMapper.updateAuctionSession(auctionSession);
    }

    /**
     * 批量删除拍卖专场
     * 
     * @param sessionIds 需要删除的拍卖专场主键
     * @return 结果
     */
    @Override
    public int deleteAuctionSessionBySessionIds(Long[] sessionIds)
    {
        return auctionSessionMapper.deleteAuctionSessionBySessionIds(sessionIds);
    }

    /**
     * 删除拍卖专场信息
     * 
     * @param sessionId 拍卖专场主键
     * @return 结果
     */
    @Override
    public int deleteAuctionSessionBySessionId(Long sessionId)
    {
        return auctionSessionMapper.deleteAuctionSessionBySessionId(sessionId);
    }
}
